﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;

namespace TagCloudNewsLibrary.Model
{
    public enum enTagState
    {
        Normal,
        Liked,
        AllRead
    }

    public class Tag
    {
        public Tag()
        {
            Stories=new List<Story>();
        }

        public string TagValue { get; set; }
        public int FontSize { get; set; }
        public enTagState State { get; set; }
        public List<Story> Stories { get; set; }

        public bool AllRead()
        {
            return Stories.Count(s => s.IsRead) == Stories.Count;
        }

        public int Count()
        {
            return Stories.Count;
        }
    }
}
